package com.dt76.smallloanbackenduser.remote.etao;

import com.dt76.smallloanbackenduser.hystrix.etao.SLogHystrix;
import com.dt76.smallloanbackenduser.utils.Page;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "smallloan-backend-service",fallback = SLogHystrix.class)
public interface SLogRemote {

    @RequestMapping("/getPageSLog")
    Page getPageSLog(@RequestParam("pageNum") Integer pageNum,
                            @RequestParam("eId") Integer eId,
                            @RequestParam("startTime") String startTime);

    @RequestMapping("/delSLogByTime")
    Result delSLogByTime(@RequestParam("delTime") String delTime);

}
